(C) 1996 AROS - The Amiga Replacement OS
This function may fail (obviously) on certain devices such as pipes or console handlers.
Moved #include's into first column